package cn.wolfcode.feign.fallback;

import cn.wolfcode.domain.Product;
import cn.wolfcode.feign.IProductFeignService;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignFallBack implements IProductFeignService {
    @Override
    public Product get(Long pid) {
        Product product = new Product();
        product.setName("兜底数据");
        return product;
    }
}
